public class TestAbstractFactory {
    public static void main(String[] args) {
        IFactory southFarmFactory = new SouthFarmFactory();

        IApple apple = southFarmFactory.createApple();
        apple.growApple();

        IOrange orange = southFarmFactory.createOrange();
        orange.growOrange();
    }
}